/**
 * 配置编译环境和线上环境之间的切换
 * 
 * baseUrl: 域名地址
 * routerMode: 路由模式
 * imgBaseUrl: 图片所在域名地址
 * 
 */
let baseUrl:string= ''; 
let areaUrl:string = ''; 
let routerMode:string = 'hash';
let imgBaseUrl:string = '';


if (import.meta.env.MODE == 'development') {
    baseUrl = import.meta.env.VITE_API_URL as any
    areaUrl = 'https://cli.avuejs.com/api/area'
    //imgBaseUrl = '//elm.cangdu.org/img/';
}else if (import.meta.env.MODE == 'debug') {    
    baseUrl = '';
} else if (import.meta.env.MODE == 'production') {    
    baseUrl = import.meta.env.VITE_API_URL as any;
}

export {
    baseUrl,
    areaUrl,
    routerMode,
    imgBaseUrl,
}